import request from "@/utils/request";

export function getList(params) {
  return request({
    url: "/vue-admin-template/table/list",
    method: "get",
    params,
  });
}


// 分页查询
export function QueryByPage(data) {
  return request({
    url: "/shortLinkCheck/selectByPage",
    method: "post",
    data,
  });
}


// 新增短链
export function AddshortChain(data) {
  return request({
    url: "/shortLinkCheck/addShortLink",
    method: "post",
    data,
  });
}



// 开始监控  
export function ChainMonitor(data) {
  return request({
    url: "/exception/find",
    method: "post",
    data
  });
}

// 修改  
export function ChangeChain(data) {
  return request({
    url: "/shortLinkCheck/modify",
    method: "post",
    data
  });
}


// 删除  
export function DelChain(data) {
  return request({
    url: "/shortLinkCheck/delete",
    method: "post",
    data
  });
}

// 批量添加  
export function AddAllChain(data) {
  return request({
    url: "/shortLinkCheck/addShortLinkByFile",
    method: "post",
    data
  });
}


// /shortLinkCheck/batchStartCheck 批量开始监控
export function BatchMonito(data) {
  return request({
    url: "/shortLinkCheck/batchStartCheck",
    method: "post",
    data
  });
}


//    /shortLinkCheck/batchCloseCheck  批量结束监控
export function BatchEndMon(data) {
  return request({
    url: "/shortLinkCheck/batchCloseCheck",
    method: "post",
    data
  });
}


// /shortLinkCheck/chooseCity  所有城市
export function AllCities(data) {
  return request({
    url: "/shortLinkCheck/chooseCity",
    method: "post",
    data
  });
}


//  /shortLinkCheck/updateCron

export function setTime(data) {
  return request({
    url: "/shortLinkCheck/updateCron",
    method: "post",
    data
  });
}


// 实时监控
export function RealTimeMon(data) {
  return request({
    url: "/onTime/findOnTime",
    method: "post",
    data
  });
}

// 实时监控 查询记录  
export function RealChaJilu(data) {
  return request({
    url: "/onTime/findOnTimeRecord",
    method: "post",
    data
  });
}


export function HomeData(data) {
  return request({
    url: "/shortLinkCheck/checkData",
    method: "post",
    data
  });
}

// 套餐列表   
export function SetMenu(data) {
  return request({
    url: "/shortLinkCheck/findUserMeal",
    method: "post",
    data
  });
}

// 新增套餐  
export function Addmenutc(data) {
  return request({
    url: "/meal/addMeal",
    method: "post",
    data
  });
}

//删除  

export function DelTcan(data) {
  return request({
    url: "/shortLinkCheck/delUserMeal",
    method: "post",
    data
  });
}

//   查询添加的套餐
export function QueryAddlist(data) {
  return request({
    url: "/meal/findMeals",
    method: "post",
    data
  });
}


// 查询 usertime  
export function QueryuseTime(data) {
  return request({
    url: "/meal/mealTime",
    method: "post",
    data
  });
}

// 套餐 修改 
export function modifyTaocan(data) {
  return request({
    url: "/meal/modifyMeal",
    method: "post",
    data
  });
}

// 查询 套餐详情  
export function UserSetmenu(data) {
  return request({
    url: "/meal/chooseMeal",
    method: "post",
    data
  });
}


// 用户购买 套餐  
export function UserAddTao(data) {
  return request({
    url: "/shortLinkCheck/userAddMeal",
    method: "post",
    data
  });
}